package com.mymoney.ws.data;

import java.io.Serializable;

import com.google.gson.annotations.SerializedName;


public class LocationBean implements Serializable {

	private static final long serialVersionUID = -833039130318308444L;

	@SerializedName("id")
	private Integer id = 0;

	@SerializedName("degrees")
	private Integer degrees = null;

	@SerializedName("minutes")
	private Integer minutes = null;
	
	@SerializedName("seconds")
	private Integer seconds = null;
	

	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}

	
	public Integer getDegrees() {
		return degrees;
	}


	public void setDegrees(Integer degrees) {
		this.degrees = degrees;
	}


	public Integer getMinutes() {
		return minutes;
	}


	public void setMinutes(Integer minutes) {
		this.minutes = minutes;
	}


	public Integer getSeconds() {
		return seconds;
	}


	public void setSeconds(Integer seconds) {
		this.seconds = seconds;
	}


	@Override
	public boolean equals(Object obj) {

		if (obj == null) {
			return false;
		}

		if(this == obj) {
			return true;
		}

		if (!(obj instanceof LocationBean)) {
			return false;
		}

		LocationBean other = (LocationBean) obj;
		if ((id == null) || (other.getId() == null)) {
			return false;
		}

		return (id.equals(other.getId()));
	}
}
